<!--{include manage/header}-->
<script type="text/javascript" src="../static/js/public.js"></script>
<script type="text/javascript" src="../static/js/xheditor/xheditor-zh-cn.min.js"></script>
<body style="background-color:#FFFFFF">
<form method="POST" name="theForm" id="theForm" action="index.php?action=userSend&file=personal&submit=true">
	<div style="height: 300px;" id="game_content">
	    <div style="padding: 10px;" id="game_base">
	        <table width="100%" >
			  <tbody>
			  <tr >
			    <td class="label">标题</td>
			    <td align="left">
			      <input gtbfieldid="1" name="title" id="message_title" size="40" class="easyui-validatebox validatebox-text" required="true" missingmessage="不能为空" type="text" value="">
			    </td>
			  </tr>
			  <tr>
			    <td class="label">正文内容</td>
			    <td align="left">
			      <textarea id="message_comment" name="comment" style="width:700px;height:200px;"></textarea>
			    </td>
			  </tr>
			  <tr>
			    <td class="label">是否邮件通知您反馈结果</td>
			    <td align="left">
			      <input name="remind" value="0" checked="checked" type="radio"> 否
			      <input name="remind" value="1" type="radio"> 是
			    </td>
			  </tr>
		  </tbody>
		  </table>
	    </div>
	</div>
    <div style="padding: 5px; text-align: center; background: none repeat scroll 0% 0% #FFFFFF;">
    	<input value="意见反馈" type="submit">
    </div>
</form>
<script>
$('#theForm').form({
    onSubmit:function(){
        return $(this).form('validate');
    },
    success:function(data){
    	JSONData = $.evalJSON(data);
    	if(JSONData.status=="success"){
			alert('意见反馈提交成功');
			window.parent.$('#tabs').tabs('close','意见反馈');
    	}else{
    		$.messager.alert('提示信息', JSONData.msg );
    	}
    }
});
$("#message_comment").click(function(){
	publicFunction.xheditor("message_comment");
});
</script>
</body>
</html>